package com.qys.livesMall.navy.service;

import com.qys.livesMall.framework.view.QysPage;
import com.qys.livesMall.navy.model.dto.task.NavyTaskSearch;
import com.qys.livesMall.navy.model.entity.NavyTask;

import java.util.List;

/**
 * <p>
 * 水军任务表 服务类
 * </p>
 *
 * @author
 * @since 2023-07-11
 */
public interface NavyTaskService  {

    void save(NavyTask task);

    /**
     * 观察任务是否完成
     * @param taskId
     * @return 是否完成
     */
    boolean watchTaskEnd(Long taskId);

    /**
     * 获取未完成任务
     * @return
     */
    List<NavyTask> listNoEnd();

    QysPage<NavyTask> search(NavyTaskSearch search);
}
